package com.example.fishscavengerhunt;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.ImageView;

public class SelectFish extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_select_fish);
		
		ImageView catFish = (ImageView) findViewById(R.id.catfish2);
		catFish.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox4);
				// checkBox.setChecked(true);
				Intent myIntent = new Intent(SelectFish.this, AddCatFish.class);
				SelectFish.this.startActivity(myIntent);
			}
		});
		ImageView archerFish = (ImageView) findViewById(R.id.archerfish2);
		archerFish.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox4);
				// checkBox.setChecked(true);
				Intent myIntent = new Intent(SelectFish.this, AddArcherFish.class);
				SelectFish.this.startActivity(myIntent);
			}
		});
		((ImageButton) findViewById(R.id.back))
				.setOnClickListener(new OnClickListener() {

					@Override
					public void onClick(View v) {
						Intent newIntent = new Intent(SelectFish.this, Main.class);
		            	SelectFish.this.startActivity(newIntent);
		            	finish();
					}
				});
		((ImageButton) findViewById(R.id.home))
		.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent newIntent = new Intent(SelectFish.this, Main.class);
            	SelectFish.this.startActivity(newIntent);
            	finish();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.select_fish, menu);
		return true;
	}

}
